<?xml version="1.0" encoding="iso-8859-1" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content=
    "application/xhtml+xml; charset=iso-8859-1" />
    <title>
      LibreOffice-6.4.0
    </title>
    <link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
    <meta name="generator" content="DocBook XSL Stylesheets V1.79.1" />
    <link rel="stylesheet" href="../stylesheets/lfs-print.css" type=
    "text/css" media="print" />
  </head>
  <body class="blfs" id="blfs-9.1">
    <div class="navheader">
      <h4>
        Beyond Linux<sup>�</sup> From Scratch <span class="phrase">(System
        V</span> Edition) - Version 9.1
      </h4>
      <h3>
        Chapter&nbsp;39.&nbsp;Office Programs
      </h3>
      <ul>
        <li class="prev">
          <a accesskey="p" href="gnumeric.html" title=
          "Gnumeric-1.12.46">Prev</a>
          <p>
            Gnumeric-1.12.46
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="graphweb.html" title=
          "Graphical Web Browsers">Next</a>
          <p>
            Graphical Web Browsers
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="office.html" title=
          "Chapter&nbsp;39.&nbsp;Office Programs">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
    <div class="sect1" lang="en" xml:lang="en">
      <h1 class="sect1">
        <a id="libreoffice" name="libreoffice"></a>LibreOffice-6.4.0
      </h1>
      <div class="package" lang="en" xml:lang="en">
        <h2 class="sect2">
          Introduction to LibreOffice
        </h2>
        <p>
          <span class="application">LibreOffice</span> is a full-featured
          office suite. It is largely compatible with <span class=
          "application">Microsoft Office</span> and is descended from
          <span class="application">OpenOffice.org</span>.
        </p>
        <p>
          This package is known to build and work properly using an LFS-9.1
          platform.
        </p>
        <h3>
          Package Information
        </h3>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Core Download: <a class="ulink" href=
                "http://download.documentfoundation.org/libreoffice/src/6.4.0/libreoffice-6.4.0.3.tar.xz">
                http://download.documentfoundation.org/libreoffice/src/6.4.0/libreoffice-6.4.0.3.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Core Download MD5 sum: 93ffa098e65dde29516ffe7212092f29
              </p>
            </li>
            <li class="listitem">
              <p>
                Core Download size: 222 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated disk space required: 9.0 GB including the
                additional files if downloaded during the build (820 MB
                installed). Installing the whole set of languages for 6.4.0.3
                required up to 25 GB (3.2 GB installed)
              </p>
            </li>
            <li class="listitem">
              <p>
                Estimated build time: 54 SBU with parallelism=4 including
                typical download time
              </p>
            </li>
          </ul>
        </div>
        <h3>
          Additional Downloads
        </h3>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            Around 80 smallish tarballs and zip files will be downloaded
            during the build. If you have not downloaded one or more of the
            following, they too will also be downloaded during the build.
          </p>
        </div>
        <div class="itemizedlist">
          <ul class="compact">
            <li class="listitem">
              <p>
                Dictionaries: <a class="ulink" href=
                "http://download.documentfoundation.org/libreoffice/src/6.4.0/libreoffice-dictionaries-6.4.0.3.tar.xz">
                http://download.documentfoundation.org/libreoffice/src/6.4.0/libreoffice-dictionaries-6.4.0.3.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Dictionaries MD5 sum: 5c021d899e8987f796d93e6d69cd5a1f
              </p>
            </li>
            <li class="listitem">
              <p>
                Dictionaries size: 46 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Help Files: <a class="ulink" href=
                "http://download.documentfoundation.org/libreoffice/src/6.4.0/libreoffice-help-6.4.0.3.tar.xz">
                http://download.documentfoundation.org/libreoffice/src/6.4.0/libreoffice-help-6.4.0.3.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Help Files MD5 sum: c7cf3fdfd70e097fcc49c58887053cea
              </p>
            </li>
            <li class="listitem">
              <p>
                Help Files size: 85 MB
              </p>
            </li>
            <li class="listitem">
              <p>
                Translations: <a class="ulink" href=
                "http://download.documentfoundation.org/libreoffice/src/6.4.0/libreoffice-translations-6.4.0.3.tar.xz">
                http://download.documentfoundation.org/libreoffice/src/6.4.0/libreoffice-translations-6.4.0.3.tar.xz</a>
              </p>
            </li>
            <li class="listitem">
              <p>
                Translations MD5 sum: 9aaecb32945a04ebc8a89835536105f9
              </p>
            </li>
            <li class="listitem">
              <p>
                Translations size: 164 MB
              </p>
            </li>
          </ul>
        </div>
        <h3>
          LibreOffice Dependencies
        </h3>
        <h4>
          Required
        </h4>
        <p class="required">
          <a class="xref" href=
          "../general/perl-modules.html#perl-archive-zip" title=
          "Archive::Zip-1.67">Archive-Zip-1.67</a>, <a class="xref" href=
          "../general/unzip.html" title="UnZip-6.0">UnZip-6.0</a>, <a class=
          "xref" href="../basicnet/wget.html" title=
          "Wget-1.20.3">Wget-1.20.3</a>, <a class="xref" href=
          "../general/which.html" title=
          "Which-2.21 and Alternatives">Which-2.21</a>, and <a class="xref"
          href="../general/zip.html" title="Zip-3.0">Zip-3.0</a>
        </p>
        <h4>
          Recommended
        </h4>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            Most of these packages are recommended because if they're not
            installed, the build process will compile and install its own
            (often older) version, with the side effect of increasing build
            and installed disk space and build time.
          </p>
        </div>
        <p class="recommended">
          <a class="xref" href="../general/apache-ant.html" title=
          "apache-ant-1.10.7">apache-ant-1.10.7</a>, <a class="xref" href=
          "../general/apr.html" title="Apr-1.7.0">Apr-1.7.0</a>, <a class=
          "xref" href="../general/boost.html" title=
          "Boost-1.72.0">Boost-1.72.0</a>, <a class="xref" href=
          "../general/clucene.html" title=
          "CLucene-2.3.3.4">CLucene-2.3.3.4</a>, <a class="xref" href=
          "../pst/cups.html" title="Cups-2.3.1">Cups-2.3.1</a>, <a class=
          "xref" href="../basicnet/curl.html" title=
          "cURL-7.68.0">cURL-7.68.0</a>, <a class="xref" href=
          "../general/dbus-glib.html" title=
          "dbus-glib-0.110">dbus-glib-0.110</a>, <a class="xref" href=
          "../general/libjpeg.html" title=
          "libjpeg-turbo-2.0.4">libjpeg-turbo-2.0.4</a>, <a class="xref"
          href="../general/glm.html" title="GLM-0.9.9.7">GLM-0.9.9.7</a>,
          <a class="xref" href="../x/glu.html" title=
          "GLU-9.0.1">GLU-9.0.1</a>, <a class="xref" href=
          "../postlfs/gpgme.html" title="GPGME-1.13.1">GPGME-1.13.1</a>,
          <a class="xref" href="../general/graphite2.html" title=
          "Graphite2-1.3.13">Graphite2-1.3.13</a>, <a class="xref" href=
          "../multimedia/gst10-plugins-base.html" title=
          "gst-plugins-base-1.16.2">gst-plugins-base-1.16.2</a>, <a class=
          "xref" href="../x/gtk3.html" title="GTK+-3.24.13">GTK+-3.24.13</a>,
          <a class="xref" href="../general/harfbuzz.html" title=
          "HarfBuzz-2.6.4">HarfBuzz-2.6.4</a>, <a class="xref" href=
          "../general/icu.html" title="ICU-65.1">ICU-65.1</a>, <a class=
          "xref" href="../general/libatomic_ops.html" title=
          "libatomic_ops-7.6.10">libatomic_ops-7.6.10</a>, <a class="xref"
          href="../general/lcms2.html" title="Little CMS-2.9">Little
          CMS-2.9</a>, <a class="xref" href="../general/librsvg.html" title=
          "librsvg-2.46.4">librsvg-2.46.4</a>, <a class="xref" href=
          "../general/libxml2.html" title="libxml2-2.9.10">libxml2-2.9.10</a>
          and <a class="xref" href="../general/libxslt.html" title=
          "libxslt-1.1.34">libxslt-1.1.34</a>, <a class="xref" href=
          "../general/python-modules.html#lxml" title=
          "lxml-4.5.0">lxml-4.5.0</a>, <a class="xref" href="../x/mesa.html"
          title="Mesa-19.3.4">Mesa-19.3.4</a>, <a class="xref" href=
          "../basicnet/neon.html" title="neon-0.30.2">neon-0.30.2</a>,
          <a class="xref" href="../postlfs/nss.html" title=
          "NSS-3.50">NSS-3.50</a>, <a class="xref" href=
          "../server/openldap.html" title=
          "OpenLDAP-2.4.49">OpenLDAP-2.4.49</a> (if connecting to an LDAP
          server), <a class="xref" href="../general/poppler.html" title=
          "Poppler-0.85.0">Poppler-0.85.0</a>, <a class="xref" href=
          "../server/postgresql.html" title=
          "PostgreSQL-12.2">PostgreSQL-12.2</a>, <a class="xref" href=
          "../general/redland.html" title=
          "Redland-1.0.17">Redland-1.0.17</a>, <a class="xref" href=
          "../basicnet/serf.html" title="Serf-1.3.9">Serf-1.3.9</a>, and
          <a class="xref" href="../general/unixodbc.html" title=
          "unixODBC-2.3.7">unixODBC-2.3.7</a>
        </p>
        <h4>
          Optional
        </h4>
        <p class="optional">
          <a class="xref" href="../basicnet/avahi.html" title=
          "Avahi-0.7">Avahi-0.7</a>, <a class="xref" href=
          "../general/bluez.html" title="BlueZ-5.53">BlueZ-5.53</a>,
          <a class="xref" href="../gnome/dconf.html" title=
          "DConf-0.34.0 / DConf-Editor-3.34.4">DConf-0.34.0</a>, <a class=
          "xref" href="../general/desktop-file-utils.html" title=
          "desktop-file-utils-0.24">desktop-file-utils-0.24</a>, <a class=
          "xref" href="../general/doxygen.html" title=
          "Doxygen-1.8.17">Doxygen-1.8.17</a> (not relevant if using
          --disable-odk), <a class="xref" href=
          "../gnome/evolution-data-server.html" title=
          "evolution-data-server-3.34.4">evolution-data-server-3.34.4</a>,
          <a class="xref" href="../general/gdb.html" title=
          "GDB-9.1">GDB-9.1</a>, <a class="xref" href=
          "../postlfs/gnutls.html" title="GnuTLS-3.6.12">GnuTLS-3.6.12</a>,
          <a class="xref" href="../kde/krameworks5.html" title=
          "Building KDE Frameworks 5 (KF5)">KDE Frameworks-5.67.0</a>,
          <a class="xref" href="../general/libpaper.html" title=
          "libpaper-1.1.24+nmu5">libpaper-1.1.24+nmu5</a>, <a class="xref"
          href="../server/mariadb.html" title=
          "MariaDB-10.4.12">MariaDB-10.4.12</a> or <a class="ulink" href=
          "http://www.mysql.com/">MySQL</a>, <a class="xref" href=
          "../postlfs/mitkrb.html" title="MIT Kerberos V5-1.18">MIT Kerberos
          V5-1.18</a>, <a class="xref" href="../general/nasm.html" title=
          "NASM-2.14.02">NASM-2.14.02</a>, <a class="xref" href=
          "../pst/sane.html" title="SANE-1.0.27">SANE-1.0.27</a>, <a class=
          "xref" href="../general/telepathy-glib.html" title=
          "telepathy-glib-0.24.1">telepathy-glib-0.24.1</a>, <a class="xref"
          href="../general/valgrind.html" title=
          "Valgrind-3.15.0">Valgrind-3.15.0</a>, <a class="xref" href=
          "../multimedia/vlc.html" title="VLC-3.0.8">VLC-3.0.8</a>, <a class=
          "xref" href="../gnome/zenity.html" title=
          "Zenity-3.32.0">Zenity-3.32.0</a>, <a class="ulink" href=
          "https://commons.apache.org/proper/commons-codec/">Apache Commons
          Codec</a>, <a class="ulink" href=
          "https://hc.apache.org/httpclient-3.x/">Apache Commons
          HttpClient</a>, <a class="ulink" href=
          "https://commons.apache.org/proper/commons-lang/">Apache Commons
          Lang</a>, <a class="ulink" href=
          "https://commons.apache.org/proper/commons-logging/">Apache Commons
          Logging</a>, <a class="ulink" href=
          "http://www.beanshell.org/">BeanShell</a>, <a class="ulink" href=
          "https://projects.coin-or.org/CoinMP/">CoinMP</a>, <a class="ulink"
          href="http://sourceforge.net/projects/cppunit/">Cppunit</a>,
          <a class="ulink" href="http://www.firebirdsql.org/">Firebird</a>,
          <a class="ulink" href=
          "https://github.com/behdad/glyphy">glyphy</a>, <a class="ulink"
          href="http://ftp.gnome.org/pub/gnome/sources/gnome-vfs/">Gnome
          VFS</a>, <a class="ulink" href=
          "https://github.com/hamcrest/JavaHamcrest/releases">hamcrest</a>,
          <a class="ulink" href="https://hunspell.github.io/">Hunspell</a>,
          <a class="ulink" href=
          "http://sourceforge.net/projects/hunspell/files/Hyphen/">Hyphen</a>,
          <a class="ulink" href="http://include-what-you-use.org/">iwyu</a>,
          <a class="ulink" href=
          "https://wiki.documentfoundation.org/DLP/Libraries/libabw">libabw</a>,
          <a class="ulink" href=
          "https://wiki.documentfoundation.org/DLP/Libraries/libcdr">libcdr</a>,
          <a class="ulink" href=
          "http://sourceforge.net/projects/libcmis/">libcmis</a>, <a class=
          "ulink" href=
          "http://www.sourceforge.net/projects/libebook/">libebook</a>,
          <a class="ulink" href=
          "https://wiki.documentfoundation.org/Libexttextcat">libexttextcat</a>,
          <a class="ulink" href=
          "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand">libfreehand</a>,
          <a class="ulink" href=
          "http://tagoh.bitbucket.org/liblangtag/">liblangtag</a>, <a class=
          "ulink" href=
          "https://wiki.documentfoundation.org/DLP/Libraries/libmspub">libmspub</a>,
          <a class="ulink" href=
          "http://sourceforge.net/projects/libmwaw/">libmwaw</a>, <a class=
          "ulink" href=
          "http://sourceforge.net/projects/libwpd/files/libodfgen/">libodfgen</a>,
          <a class="ulink" href=
          "https://wiki.documentfoundation.org/DLP/Libraries/libpagemaker">libpagemaker</a>,
          <a class="ulink" href=
          "http://sourceforge.net/projects/libwpd/files/librevenge/">librevenge
          (WordPerfect Document importer)</a>, <a class="ulink" href=
          "https://wiki.documentfoundation.org/DLP/Libraries/libvisio">libvisio</a>,
          <a class="ulink" href="http://libwpd.sourceforge.net/">libwpd</a>,
          <a class="ulink" href="http://libwpg.sourceforge.net/">libwpg</a>,
          <a class="ulink" href="http://libwps.sourceforge.net/">libwps</a>,
          <a class="ulink" href=
          "http://lpsolve.sourceforge.net/">lp_solve</a>, <a class="ulink"
          href="https://gitlab.com/mdds/mdds">mdds</a>, <a class="ulink"
          href="http://sourceforge.net/projects/hunspell/files/MyThes/">MyThes</a>,
          <a class="ulink" href=
          "https://github.com/KhronosGroup/OpenCOLLADA/">OpenCOLLADA</a>,
          <a class="ulink" href="https://gitlab.com/orcus/orcus">Orcus</a>,
          and <a class="ulink" href=
          "https://ukoethe.github.io/vigra/">VIGRA</a>
        </p>
        <p>
          There are many optional dependencies not listed here. They can be
          found in <span class="quote">&ldquo;<span class=
          "quote">download.lst</span>&rdquo;</span> (source directory).
        </p>
        <p class="usernotes">
          User Notes: <a class="ulink" href=
          "http://wiki.linuxfromscratch.org/blfs/wiki/libreoffice">http://wiki.linuxfromscratch.org/blfs/wiki/libreoffice</a>
        </p>
      </div>
      <div class="installation" lang="en" xml:lang="en">
        <h2 class="sect2">
          Installation of LibreOffice
        </h2>
        <div class="admon important">
          <img alt="[Important]" src="../images/important.png" />
          <h3>
            Important
          </h3>
          <p>
            Unlike the other packages, we assume that you have not yet
            unpacked the package. This is because the <code class=
            "option">--no-overwrite-dir</code> switch is needed in case you
            unpack as the <code class="systemitem">root</code> user.
          </p>
        </div>
        <pre class="userinput">
<kbd class=
"command">tar -xf libreoffice-6.4.0.3.tar.xz --no-overwrite-dir &amp;&amp;
cd libreoffice-6.4.0.3</kbd>
</pre>
        <p>
          If you have downloaded the dictionaries, help and translations
          tarballs, create symlinks to them from the source directory so they
          won't get downloaded again:
        </p>
        <pre class="userinput">
<kbd class="command">install -dm755 external/tarballs &amp;&amp;
ln -sv ../../../libreoffice-dictionaries-6.4.0.3.tar.xz external/tarballs/ &amp;&amp;
ln -sv ../../../libreoffice-help-6.4.0.3.tar.xz         external/tarballs/ &amp;&amp;
ln -sv ../../../libreoffice-translations-6.4.0.3.tar.xz external/tarballs/</kbd>
</pre>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            During the build process, some packages will be downloaded
            (including the ones listed as recommended and optional
            dependencies) if they are not present on the system. Because of
            this, build time may vary from the published time more than
            usual.
          </p>
        </div>
        <p>
          Due to the large size of the package, you may prefer to install it
          in <code class="filename">/opt</code>, instead of <code class=
          "filename">/usr</code>. Depending on your choice, replace
          <em class="replaceable"><code>&lt;PREFIX&gt;</code></em> by
          <code class="filename">/usr</code> or by <code class=
          "filename">/opt/libreoffice-6.4.0.3</code>:
        </p>
        <pre class="userinput">
<kbd class="command">export LO_PREFIX=<em class=
"replaceable"><code>&lt;PREFIX&gt;</code></em></kbd>
</pre>
        <p>
          Locales "fr" and "en-GB", you will find below, are just examples;
          you should change them to suit your needs - you might want to read
          the "Command Explanations", further below, before proceeding.
        </p>
        <p>
          Prepare <span class="application">LibreOffice</span> for
          compilation by running the following commands:
        </p>
        <pre class="userinput">
<kbd class="command">sed -e "/gzip -f/d"   \
    -e "s|.1.gz|.1|g" \
    -i bin/distro-install-desktop-integration &amp;&amp;

sed -e "/distro-install-file-lists/d" -i Makefile.in &amp;&amp;

sed -e '/JAVA_SOURCE_VER/s/6/7/' \
    -e '/JAVA_TARGET_VER/s/6/7/' \
    -i configure.ac &amp;&amp;

sed -e 's/globalParams = new GlobalParams()/globalParams.reset(new GlobalParams())/' \
    -i sdext/source/pdfimport/xpdfwrapper/wrapper_gpl.cxx &amp;&amp;

sed -e 's/printPath( GfxPath/printPath(const GfxPath/' \
    -e 's/  GfxSubpath/ const GfxSubpath/' \
    -i sdext/source/pdfimport/xpdfwrapper/pdfioutdev_gpl.* &amp;&amp;

./autogen.sh --prefix=$LO_PREFIX         \
             --sysconfdir=/etc           \
             --with-vendor=BLFS          \
             --with-lang='fr en-GB'      \
             --with-help                 \
             --with-myspell-dicts        \
             --without-junit             \
             --without-system-dicts      \
             --disable-dconf             \
             --disable-odk               \
             --enable-release-build=yes  \
             --enable-python=system      \
             --with-jdk-home=/opt/jdk    \
             --with-system-apr           \
             --with-system-boost         \
             --with-system-clucene       \
             --with-system-curl          \
             --with-system-epoxy         \
             --with-system-expat         \
             --with-system-glm           \
             --with-system-gpgmepp       \
             --with-system-graphite      \
             --with-system-harfbuzz      \
             --with-system-icu           \
             --with-system-jpeg          \
             --with-system-lcms2         \
             --with-system-libatomic_ops \
             --with-system-libpng        \
             --with-system-libxml        \
             --with-system-neon          \
             --with-system-nss           \
             --with-system-odbc          \
             --with-system-openldap      \
             --with-system-openssl       \
             --with-system-poppler       \
             --with-system-postgresql    \
             --with-system-redland       \
             --with-system-serf          \
             --with-system-zlib</kbd>
</pre>
        <p>
          The instructions below will only build the package without running
          any unit tests. If you prefer to run the unit tests, replace
          <span class="command"><strong>make build-nocheck</strong></span>
          with <span class="command"><strong>make build</strong></span> or
          (as a regular user only) just <span class=
          "command"><strong>make</strong></span>, but do not be surprised if
          a unit test fails right at the end of the build and breaks it.
        </p>
        <p>
          Build the package:
        </p>
        <pre class="userinput">
<kbd class="command">make build-nocheck</kbd>
</pre>
        <p>
          Now, as the <code class="systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">make distro-pack-install</kbd>
</pre>
        <p>
          If installed in <code class=
          "filename">/opt/libreoffice-6.4.0.3</code> some additional steps
          are necessary. Issue the following commands, as <code class=
          "systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">if [ "$LO_PREFIX" != "/usr" ]; then

  # This symlink is necessary for the desktop menu entries
  ln -svf $LO_PREFIX/lib/libreoffice/program/soffice /usr/bin/libreoffice &amp;&amp;

  # Set up a generic location independent of version number
  ln -sfv libreoffice-6.4.0.3 /opt/libreoffice 

  # Icons
  mkdir -vp /usr/share/pixmaps
  for i in $LO_PREFIX/share/icons/hicolor/32x32/apps/*; do
    ln -svf $i /usr/share/pixmaps
  done &amp;&amp;

  # Desktop menu entries
  for i in $LO_PREFIX/lib/libreoffice/share/xdg/*; do
    ln -svf $i /usr/share/applications/libreoffice-$(basename $i)
  done &amp;&amp;

  # Man pages
  for i in $LO_PREFIX/share/man/man1/*; do
    ln -svf $i /usr/share/man/man1/
  done

  unset i
fi</kbd>
</pre>
        <p>
          If you have installed <a class="xref" href=
          "../general/desktop-file-utils.html" title=
          "desktop-file-utils-0.24">desktop-file-utils-0.24</a>, and you wish
          to update the MIME database, issue, as the <code class=
          "systemitem">root</code> user:
        </p>
        <pre class="root">
<kbd class="command">update-desktop-database</kbd>
</pre>
        <p>
          The suite and main modules can be started from the menu. From a
          terminal, the suite can be started with <span class=
          "command"><strong>libreoffice</strong></span> command and the
          modules with <span class="command"><strong>libreoffice --<em class=
          "replaceable"><code>&lt;module&gt;</code></em></strong></span>
          command, respectively, where <em class=
          "replaceable"><code>&lt;module&gt;</code></em> is one of base,
          calc, draw, impress, math or writer. Modules cannot be started
          using their shell starting script names (see "Installed Programs",
          below), if LO_PREFIX is other than <code class=
          "filename">/usr</code>, unless <code class=
          "filename">$LO_PREFIX/bin</code> directory is appended to the PATH.
        </p>
      </div>
      <div class="commands" lang="en" xml:lang="en">
        <h2 class="sect2">
          Command Explanations
        </h2>
        <p>
          <span class="command"><strong>sed -e ...</strong></span>: The first
          sed prevents compression of the manual pages, the second one
          prevents the install from failing, the third allows to build with
          OpenJDK-12, and the third and fourth allow poppler-0.85.0 to be
          used.
        </p>
        <p>
          <em class="parameter"><code>--with-vendor=BLFS</code></em>: This
          switch sets BLFS as the vendor which is mentioned when you click
          "About" from the Help menu on the toolbar.
        </p>
        <p>
          <em class="parameter"><code>--with-lang='fr en-GB'</code></em>:
          This switch sets what languages to support. To list several
          languages, separate them with a space. For all languages, use
          <em class="parameter"><code>--with-lang=ALL</code></em>.
        </p>
        <div class="admon note">
          <img alt="[Note]" src="../images/note.png" />
          <h3>
            Note
          </h3>
          <p>
            For a list of the available languages, look in <code class=
            "filename">solenv/inc/langlist.mk</code>.
          </p>
        </div>
        <p>
          <em class="parameter"><code>--with-help</code></em>: Without this
          switch, the help files are not built.
        </p>
        <p>
          <em class="parameter"><code>--with-jdk-home=/opt/jdk</code></em>:
          This parameter will silence a warning that the configure script
          attempted to find JAVA_HOME automatically (even though that is
          passed in the environment). Omit this if you disabled java.
        </p>
        <p>
          <em class="parameter"><code>--with-myspell-dicts</code></em>: This
          switch adds myspell dictionaries to the <span class=
          "application">LibreOffice</span> installation set.
        </p>
        <p>
          <em class="parameter"><code>--with-system-boost</code></em>: This
          switch enables using system boost. From time to time, recent
          versions of boost break the build of libreoffice. In this case, it
          is possible to use the bundled copy of boost, by removing this
          flag.
        </p>
        <p>
          <em class="parameter"><code>--disable-dconf</code></em>: This
          switch disables compiling <span class=
          "application">LibreOffice</span> with the <span class=
          "application">GNOME DConf</span> configuration system support.
        </p>
        <p>
          <em class="parameter"><code>--without-junit</code></em>: This
          switch disables the tests for the deprecated HSQLDB driver which is
          written in Java. If you wish to build this driver replace this
          switch with the set of switches described below after
          '--without-java'.
        </p>
        <p>
          <em class="parameter"><code>--without-system-dicts</code></em>:
          This switch disables use of dictionaries from system paths, so the
          ones installed by this package are used.
        </p>
        <p>
          <em class="parameter"><code>--disable-odk</code></em>: This switch
          disables installing the office development kit. Remove if you want
          to develop a <span class="application">LibreOffice</span> based
          application.
        </p>
        <p>
          <em class="parameter"><code>--enable-release-build=yes</code></em>:
          This switch enables a Release Build. <span class=
          "application">LibreOffice</span> can be built as a Release Build or
          as a Developer Build, because their default installation paths and
          user profile paths are different. Developer Build displays the
          words "Dev" and "Beta" in several places (e.g, menu and splash
          screen).
        </p>
        <p>
          <em class="parameter"><code>--enable-python=system</code></em>:
          This switch tells <span class="application">LibreOffice</span> to
          use installed <span class="application">Python 3</span> instead of
          the bundled one.
        </p>
        <p>
          <em class="parameter"><code>--with-system-*</code></em>: These
          switches prevent <span class="application">LibreOffice</span> from
          trying to compile its own versions of these dependencies. If you've
          not installed some of the dependencies, remove the corresponding
          switches.
        </p>
        <p>
          <span class="command"><strong>make
          distro-pack-install</strong></span>: this does a normal install,
          but if you add a DESTDIR environment variable it will also install
          a lot of (text) gid_Module_* files in the DESTDIR, to help
          distributions which want to break the package into parts.
        </p>
        <p>
          <code class="option">--with-parallelism=&lt;count&gt;</code>: This
          switch tells <span class="application">LibreOffice</span> to use
          &lt;count&gt; CPU cores to compile in parallel. (Do not include
          literal angle brackets.) The default is to use all available cores
          on the system.
        </p>
        <p>
          <code class="option">--disable-cups</code>: Use this switch if you
          don't need printing support.
        </p>
        <p>
          <code class="option">--disable-dbus</code>: Use this switch if
          you've not installed D-Bus-1.8.0 or later. It also disables
          Bluetooth support and font install via PackageKit.
        </p>
        <p>
          <code class="option">--disable-firebird-sdbc</code>: By default,
          the ability to connect to a <span class=
          "application">firebird</span> database is enabled. Add this switch
          if you do not need that feature.
        </p>
        <p>
          <code class="option">--disable-gstreamer-1-0</code>: Use this
          switch if you have not installed <a class="xref" href=
          "../multimedia/gst10-plugins-base.html" title=
          "gst-plugins-base-1.16.2">gst-plugins-base-1.16.2</a>.
        </p>
        <p>
          <code class="option">--disable-postgresql-sdbc</code>: This switch
          disables compiling <span class="application">LibreOffice</span>
          with the ability to connect to a <span class=
          "application">PostgreSQL</span> database. Use it if you have not
          installed <span class="application">PostgreSQL</span> and you do
          not want <span class="application">LibreOffice</span> to compile
          its bundled copy.
        </p>
        <p>
          <code class="option">--enable-gtk3-kde5</code>: This switch allows
          the Visual Class Library, which is responsible for widgets, to be
          built with KF5 file dialogs if GTK+-3, Qt5 and Plasma are all
          available.
        </p>
        <p>
          <code class="option">--enable-lto</code>: This switch will enable
          Link Time Optimization, which results in slightly smaller libraries
          (about 40 MB). This is said to make <span class=
          "application">LibreOffice</span> programs load faster (and possibly
          run faster, e.g. when recalculating a spreadsheet). On an 8-core
          machine with 16GB of memory, the difference in compile times was
          minimal, but an extra 2GB was used for the work files. On machines
          with fewer processors or a lack of memory, the compile might be
          much slower.
        </p>
        <p>
          <code class="option">--without-java</code>: This switch disables
          <span class="application">Java</span> support in <span class=
          "application">LibreOffice</span>. Java is needed for the deprecated
          HSQLDB driver, which allows reading databases created by other
          programs or in earlier versions of libreoffice <span class=
          "application">base</span>.
        </p>
        <p>
          <code class=
          "option">--with-junit=/opt/ant/lib/junit-4.12.jar</code> and
          <code class=
          "option">--with-hamcrest=/opt/ant/lib/hamcrest-core-1.3.jar</code>:
          Those options are needed if you want to run the tests.
        </p>
        <p>
          <code class="option">--without-fonts</code>: <span class=
          "application">LibreOffice</span> includes a number of third-party
          TrueType fonts. If you have already installed some or all of the
          same fonts, you may prefer to use the system versions.
        </p>
        <p>
          <code class="option">--enable-kde5</code>: Builds with KDE/Plasma
          integration. If <a class="xref" href="../x/qt5.html" title=
          "Qt-5.14.1">Qt-5.14.1</a> and/or <a class="xref" href=
          "../kde/krameworks5.html" title=
          "Building KDE Frameworks 5 (KF5)">KDE Frameworks-5.67.0</a> are not
          installed in <code class="filename">/usr</code>, the include and
          library directories must be specified in <code class=
          "envar">QT5INC</code>, <code class="envar">QT5LIB</code>,
          <code class="envar">KF5INC</code>, and <code class=
          "envar">KF5LIB</code>, respectively.
        </p>
        <p>
          <code class="option">--with-system-icu</code>: This command would
          use the system version of <a class="xref" href=
          "../general/icu.html" title="ICU-65.1">ICU-65.1</a> which is
          normally considered to be a good thing to do. However, one of the
          very minor packages pulled in by <span class=
          "application">LibreOffice</span>, libfreehand-0.1.2, does not
          compile with ICU-65.1 because of a missing semi-colon at the end of
          one line in one of its files. Do not use this option unless you
          have separately installed a patched or newer version of <a class=
          "ulink" href=
          "https://wiki.documentfoundation.org/DLP/Libraries/libfreehand">libfreehand</a>.
        </p>
      </div>
      <div class="content" lang="en" xml:lang="en">
        <h2 class="sect2">
          Contents
        </h2>
        <div class="segmentedlist">
          <div class="seglistitem">
            <div class="seg">
              <strong class="segtitle">Installed Programs:</strong>
              <span class="segbody">libreoffice, lobase, localc, lodraw,
              loffice, lofromtemplate, loimpress, lomath, loweb, lowriter,
              soffice and unopkg; several programs under
              $LO_PREFIX/lib/libreoffice/program</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Libraries:</strong>
              <span class="segbody">several libraries under
              $LO_PREFIX/lib/libreoffice/program</span>
            </div>
            <div class="seg">
              <strong class="segtitle">Installed Directory:</strong>
              <span class="segbody">$LO_PREFIX/lib/libreoffice</span>
            </div>
          </div>
        </div>
        <div class="variablelist">
          <h3>
            Short Descriptions
          </h3>
          <table border="0" class="variablelist">
            <colgroup>
              <col align="left" valign="top" />
              <col />
            </colgroup>
            <tbody>
              <tr>
                <td>
                  <p>
                    <a id="libreoffice-suite" name=
                    "libreoffice-suite"></a><span class="term"><span class=
                    "command"><strong>libreoffice (or
                    soffice)</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the main libreofice suite (symlink to
                    $LO_PREFIX/lib/libreoffice/program/soffice).
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lobase" name="lobase"></a><span class=
                    "term"><span class=
                    "command"><strong>lobase</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the database manager module shell starting script.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="localc" name="localc"></a><span class=
                    "term"><span class=
                    "command"><strong>localc</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the spreadsheet module shell starting script.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lodraw" name="lodraw"></a><span class=
                    "term"><span class=
                    "command"><strong>lodraw</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the vector graphics editor and diagramming tool module
                    shell starting script.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="loimpress" name="loimpress"></a><span class=
                    "term"><span class=
                    "command"><strong>loimpress</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the (PowerPoint) presentations editor and displayer
                    module shell starting script.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lomath" name="lomath"></a><span class=
                    "term"><span class=
                    "command"><strong>lomath</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the mathematical formula editor module shell starting
                    script.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="loweb" name="loweb"></a><span class=
                    "term"><span class=
                    "command"><strong>loweb</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the HTML editor module shell starting script.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="lowriter" name="lowriter"></a><span class=
                    "term"><span class=
                    "command"><strong>lowriter</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is the word processor module shell starting script.
                  </p>
                </td>
              </tr>
              <tr>
                <td>
                  <p>
                    <a id="unopkg" name="unopkg"></a><span class=
                    "term"><span class=
                    "command"><strong>unopkg</strong></span></span>
                  </p>
                </td>
                <td>
                  <p>
                    is a tool to manage <span class=
                    "application">LibreOffice</span> extensions from the
                    command line.
                  </p>
                </td>
              </tr>
            </tbody>
          </table>
        </div>
      </div>
      <p class="updated">
        Last updated on 2020-02-25 07:28:56 -0800
      </p>
    </div>
    <div class="navfooter">
      <ul>
        <li class="prev">
          <a accesskey="p" href="gnumeric.html" title=
          "Gnumeric-1.12.46">Prev</a>
          <p>
            Gnumeric-1.12.46
          </p>
        </li>
        <li class="next">
          <a accesskey="n" href="graphweb.html" title=
          "Graphical Web Browsers">Next</a>
          <p>
            Graphical Web Browsers
          </p>
        </li>
        <li class="up">
          <a accesskey="u" href="office.html" title=
          "Chapter&nbsp;39.&nbsp;Office Programs">Up</a>
        </li>
        <li class="home">
          <a accesskey="h" href="../index.html" title=
          "Beyond Linux� From Scratch     (System V Edition) - Version 9.1">Home</a>
        </li>
      </ul>
    </div>
  </body>
</html>
